package com.techsun.lf.shadow;

import com.tencent.shadow.dynamic.host.DynamicPluginManager;
import com.tencent.shadow.dynamic.host.PluginManager;

import java.io.File;

public class Shadow {
   public static PluginManager getPluginManager(File apk){
      final FixedPathPmUpdater fixedPathPmUpdater = new FixedPathPmUpdater(apk);
      File tempPm = fixedPathPmUpdater.getLatest();
      if (tempPm != null) {
         return new DynamicPluginManager(fixedPathPmUpdater);
      }
      return null;
   }
}
